<template>
  <layout>
      <ve-line :data="chartData" ></ve-line>
  </layout>
</template>

<script>
  export default {
    data() {
        return {
            chartData: []
        }
    },
    created(){
        this.$http.get(`/data/sale`).then(res => {
            if(res.errcode == 0){
                this.chartData = res.data
            }
        })
    }

  }
</script>